$(function(){

});

function signIn(e){
    e.preventDefault();
    var username = $('#username');
    var password = $('#password');
    if(username.val() == ""){
        username.effect('highlight', {color: 'rgb(255, 182, 193)'}, 500);
        username.focus();
    }else if(password.val() == ""){
        password.effect('highlight', {color: 'rgb(255, 182, 193)'}, 500);
        password.focus();
    }else{
        $('form').submit();
    }
}

function createCategory(){
    var category_title = $('#category_title');
    if(category_title.val() == ""){
        category_title.effect('highlight', {color: 'rgb(255, 182, 193)'}, 500);
        category_title.focus();
    }else{
        $('#submit').submit();
    }
}